from . import _accident, _bad_weather, _special_lane

# 事故区
accident = _accident.AccidentDomain()


class SceneConfig:

    def __new__(cls, *args, **kwargs):
        return super().__new__(cls)

    def __init__(self):
        self.accident = _accident.AccidentDomain()
        self.bad_weather = _bad_weather.BadWeatherDomain()
        self.special_lane = _special_lane.SpecialLaneDomain()

    def to_dict(self):
        return {
            'accident': self.accident.get_accident_polygon_list(),
            'badWeather': self.bad_weather.get_bad_weather_polygon_list()
        }